package com.master.redis;

public class MiaoshaUserKey extends  BasePrefix{

    //Redis中key的默认过期时间为两天
    public static final int TOKEN_EXPIRE = 3600*24 * 2;

    //过期时间默认为0,代表永不过期
    private MiaoshaUserKey(String prefix) {
        super(prefix);
    }

    public  MiaoshaUserKey(int expireSeconds, String prefix){
        super(expireSeconds, prefix);
    }

    public static MiaoshaUserKey token = new MiaoshaUserKey(TOKEN_EXPIRE,"tk");
    public static MiaoshaUserKey getByName = new MiaoshaUserKey("name");

}
